package com.hundsun.cprs.yyt.service.match.core.queue;

/**
 * 买单队列，价格高的在头部
 * 
 * @author fish
 * 
 */
public class BuyQueue extends PriceQueue {

	private static final long serialVersionUID = -2318395629794912857L;

	@Override
	protected PriceCell getInitLeaderCell() {
		return new PriceCell(Long.MAX_VALUE);
	}

	@Override
	protected boolean isPriceFavorable(long price, long compare) {
		return price >= compare;
	}

}
